package com.hyperfix.models.constant.params;

/**
 * @author JiangChunYu
 * 2024/3/15
 */
public class CommonParamsConstant {
    /**
     * 数值符号 +- 1bit
     * 数值整数部分 7bit
     * 数值小数部分(2位) 00 - 99 7bit
     */
    public static final int SYMBOL_ARG = 0x00_00_40_00;
    public static final int INT_PART_ARG = 0x00_00_3F_80;
    public static final int DOUBLE_PART_ARG = 0x00_00_00_7F;
    public static final int SYMBOL_BIT = 14;
    public static final int INT_PART_BIT = 7;
    public static final int DOUBLE_PART_BIT = 0;

    /**
     * 站场编号 0-127 7bit
     * 管线编号 0-1023 10bit
     */
    public static final int STATION_ARG = 0xFE_00_00_00;
    public static final int PIPELINE_ARG = 0x01_FE_80_00;
    public static final int STATION_BIT = 25;
    public static final int PIPELINE_BIT = 15;
}
